<?php
$cookie = dirname(__FILE__).'/cookie.txt';
$post = array(
	'm' => '13660569061',
	'pass' => 'bin13660569061',
	'loginstatus' => 1,
);

$curl = curl_init('http://f.10086.cn/im/login/inputpasssubmit1.action');
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_COOKIEJAR, $cookie);	// 注意这里！保存Cookie
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($post));
$result = curl_exec($curl);
curl_close($curl);
echo $result;
?>
